<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/base.css">
    <style>
        #waterfall{
            position: relative;
        }
        .box{
            padding:15px 0 0 15px;
            float:left;
        }
        .pic{
            padding:10px;
            border:1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 0 5px #ccc;
        }
        .pic img{
            width:300px;
            height:auto;
        }
    </style>
</head>
<body>
    <main>
        <div id="waterfall">
            <div class="box">
                <div class="pic">
                    <img src="./image/1.jpg" alt="">
                </div>
            </div>
            <div class="box">
                <div class="pic">
                    <img src="./image/5.jpg" alt="">
                </div>
            </div>
            <div class="box">
                <div class="pic">
                    <img src="./image/a1.jpg" alt="">
                </div>
            </div>
            <div class="box">
                <div class="pic">
                    <img src="./image/a2.jpg" alt="">
                </div>
            </div>
            <div class="box">
                <div class="pic">
                    <img src="./image/bear4.jpg" alt="">
                </div>
            </div>
            <div class="box">
                <div class="pic">
                    <img src="./image/ad01.jpg" alt="">
                </div>
            </div>
            <div class="box">
                <div class="pic">
                    <img src="./image/bear2.jpg" alt="">
                </div>
            </div>
            
            
        </div>
    </main>

    <script src="./js/jquery-1.12.4.js"></script>

    <script>
        // window加载完毕后调用
        window.onload=function(){
            
            var dataInt={
                "data":[
                    {
                        "src":'./image/a1.jpg'
                    },
                    {
                        "src":'./image/a2.jpg'
                    },
                    {
                        "src":'./image/1.jpg'
                    },
                    {
                        "src":'./image/5.jpg'
                    },
                    {
                        "src":'./image/ad01.jpg'
                    }
                ]
            }
        }

        $("window").scroll(function(){
            
        })
    </script>
</body>
</html>